package com.oceansoft.mobile.biz.api.entity;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class WxDept {
	private String orgid;//组织编号
	private String orgname;//部门名称
	private String type;//部门类型
	private String parentid;//部门类型

	public static RowMapper<WxDept> getRowMapper() {
		return new RowMapper<WxDept>() {
			public WxDept mapRow(ResultSet rs, int rowNum) throws SQLException {
				WxDept obj = new WxDept();
				obj.setOrgid(rs.getString("orgid"));
				obj.setOrgname(rs.getString("orgname"));
				return obj;
			}
		};
	}

	public String getOrgid() {
		return orgid;
	}

	public void setOrgid(String orgid) {
		this.orgid = orgid;
	}

	public String getOrgname() {
		return orgname;
	}

	public void setOrgname(String orgname) {
		this.orgname = orgname;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getParentid() {
		return parentid;
	}

	public void setParentid(String parentid) {
		this.parentid = parentid;
	}
}
